/* ----- MAIN MENU ----- */

#menu {
    clear: both;
    width: 982px;
    height: 33px;
    background: url(../img/bg-menu.jpg) no-repeat;
}

.menu {
    list-style: none;
    height: 30px;
    position: relative;
    z-index: 500;
    padding-left: 5px;
    padding-top: 3px;
    text-align: left;
}

.menu li.top {
    display: block;
    float: left;
    font-size: 14px;
    padding-right: 15px;
    padding-left: 15px;
    font-weight: bold;
}

.menu li.line {
    background: url(../img/menu-line.gif) no-repeat right center;
}

.menu li a.top_link {
    display: block;
    float: left;
    height: 30px;
    line-height: 27px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.menu li a:hover.top_link {
    text-decoration: underline;
}

.menu table.top {
    position: absolute;
    top: 0;
    left: -15px;
}

.menu table {
    border-collapse: collapse;
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Style the list OR link hover. Depends on which browser is used */
.menu a:hover {
    visibility: visible;
    position: relative;
    z-index: 200;
}

.menu li:hover {
    position: relative;
    z-index: 200;
}

/* keep the 'next' level invisible by placing it off screen. */
.menu ul,
.menu :hover ul ul,
.menu :hover ul :hover ul ul,
.menu :hover ul :hover ul :hover ul ul,
.menu :hover ul :hover ul :hover ul :hover ul ul {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu :hover ul.sub {
    left: 15px;
    top: 29px;
    background: #EFF0EF;
    border: 1px solid #000;
    white-space: nowrap;
    width: 160px;
    height: auto;
    z-index: 300;
}

.menu :hover ul.sub li {
    display: block;
    height: 20px;
    position: relative;
    float: left;
    width: 160px;
    font-weight: normal;
    border-bottom: 1px solid #ccc;
}

.menu :hover ul.sub li a {
    display: block;
    font-size: 12px;
    height: 20px;
    width: 160px;
    line-height: 20px;
    text-indent: 5px;
    color: #000;
    text-decoration:none;
}

.menu :hover ul.sub li a.fly {
    background: #EFF0EF url(../img/arrow.gif) 150px 7px no-repeat;
}

.menu :hover ul.sub li a:hover {
    background: #C8C8C8;
    color: #000;
}

.menu :hover ul.sub li a.fly:hover {
    background: #C8C8C8 url(../img/arrow_over.gif) 150px 7px no-repeat;
    color: #000;
}

.menu :hover ul li:hover > a.fly {
    background: #C8C8C8 url(../img/arrow_over.gif) 150px 7px no-repeat;
    color: #000;
}

.menu :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul :hover ul :hover ul :hover ul {
    left: 155px;
    top: -1px;
    background: #EFF0EF;
    border: 1px solid #000;
    white-space: nowrap;
    width: 160px;
    z-index: 400;
    height:auto;
}
